gtk4.git
10 years agocombobox: Create button on init() and destroy in destroy()
Benjamin Otte [Sat, 25 Jul 2015 21:19:40 +0000 (23:19 +0200)]
combobox: Create button on init() and destroy in destroy()

The button is the same in both menu and list mode, so there's no need to
destroy and recreate it.

10 years agocombobox: Add scroll support in list mode
Benjamin Otte [Fri, 24 Jul 2015 15:31:25 +0000 (17:31 +0200)]
combobox: Add scroll support in list mode

10 years agocombobox: Remove unused argument
Benjamin Otte [Fri, 24 Jul 2015 15:20:03 +0000 (17:20 +0200)]
combobox: Remove unused argument

The visible check is always FALSE, so no need to keep the code around.

10 years agocombobox: Remove the box from the button
Benjamin Otte [Fri, 24 Jul 2015 15:09:36 +0000 (17:09 +0200)]
combobox: Remove the box from the button

... when in menu mode.

Now that we don't have a separator anymore, the box is not needed
anymore.

10 years agocombobox: Remove the separator
Benjamin Otte [Fri, 24 Jul 2015 15:02:48 +0000 (17:02 +0200)]
combobox: Remove the separator

It was a special case and it's not used by themes anymore.

Plus, in the CSS world, if a theme wants a separator, it can just
style the button's border to create one.

10 years agoRemove a duplicate string
Matthias Clasen [Sun, 26 Jul 2015 06:57:39 +0000 (02:57 -0400)]
Remove a duplicate string

dialog-information was twice in the list of accessible labels
for icon names.

10 years agolistbox: Fix shift-selection
Matthias Clasen [Sun, 26 Jul 2015 06:40:26 +0000 (02:40 -0400)]
listbox: Fix shift-selection

Selecting a range of rows with Shift-click was accidentally broken
in e6e511eb460d8fcd. Make it work again.

10 years agoquartz: Implement NO_TARGET drag result
Matthias Clasen [Sun, 26 Jul 2015 06:10:47 +0000 (02:10 -0400)]
quartz: Implement NO_TARGET drag result

This is necessary to make notebook tab DND work.

https://bugzilla.gnome.org/show_bug.cgi?id=752638

10 years agoquartz: Check if a drag ends inside a known window
Matthias Clasen [Sun, 26 Jul 2015 06:04:48 +0000 (02:04 -0400)]
quartz: Check if a drag ends inside a known window

If a drag ends inside a known window, set the dest_window field
in the drag context. This information is needed to implemented
notebook tab dragging.

https://bugzilla.gnome.org/show_bug.cgi?id=752638

10 years agoGtkMenu: Properly detach menu when the window is detached
Jonas Ådahl [Thu, 23 Jul 2015 06:34:12 +0000 (14:34 +0800)]
GtkMenu: Properly detach menu when the window is detached

Without properly cleaning up GtkMenu private attach state
(GtkMenuAttachData) when the attached widget is freed, we would end up
with an invalid pointer to a freed widget. Trying to detach from that
widget would cause a segmentation fault.

https://bugzilla.gnome.org/show_bug.cgi?id=752761

10 years agowayland: Fix initial fullscreen monitor support
Giovanni Campagna [Sun, 26 Jul 2015 00:22:41 +0000 (17:22 -0700)]
wayland: Fix initial fullscreen monitor support

-1 means that we have no specific preference for an initial
fullscreen monitor, and -1 is less than the number of monitors,
so we would end up accessing invalid memory. Prevent that.

https://bugzilla.gnome.org/show_bug.cgi?id=752875

10 years agoFix a warning
Matthias Clasen [Sun, 26 Jul 2015 05:49:19 +0000 (01:49 -0400)]
Fix a warning

10 years agoUse standard cursor names
Matthias Clasen [Sun, 10 May 2015 02:50:02 +0000 (22:50 -0400)]
Use standard cursor names

This changes GTK+ to use gdk_cursor_new_from_name() with the
'standard' css names, instead of GdkCursorType.

https://bugzilla.gnome.org/show_bug.cgi?id=652085

10 years agowin32: Support all css cursor names
Matthias Clasen [Sun, 26 Jul 2015 05:34:38 +0000 (01:34 -0400)]
win32: Support all css cursor names

Approximate some of the resize cursors with similar cursors.

10 years agobroadway: fix use-after-free on read errors
Peter Wu [Thu, 23 Jul 2015 15:13:54 +0000 (17:13 +0200)]
broadway: fix use-after-free on read errors

Call chain:
 - input_data_cb
   - broadway_server_read_all_input_nonblocking (input)
     - broadway_input_free (input)
       (now input is invalid)
     attempt to use input->active -> use-after-free

Make broadway_server_read_all_input_nonblocking return a boolean, TRUE
if the input was valid, FALSE otherwise. This allows input_data_cb to
detect whether the input was gone or not.

https://bugzilla.gnome.org/show_bug.cgi?id=741685

10 years agoFix x11-less build
Matthias Clasen [Sun, 26 Jul 2015 04:35:25 +0000 (00:35 -0400)]
Fix x11-less build

We don't use pangoft2 at all in libgdk, but we are using it in libgtk
both under X and Wayland.

10 years agoDon't use libcanberra without X
Matthias Clasen [Sun, 26 Jul 2015 03:22:04 +0000 (23:22 -0400)]
Don't use libcanberra without X

libcanberra calls x11 backend functions, so we can't use it
when the x11 backend is disabled.

10 years agoplaces view: Documentation fixups
Matthias Clasen [Sat, 25 Jul 2015 16:11:05 +0000 (12:11 -0400)]
places view: Documentation fixups

Rewrite gtk_places_sidebar_set_show_enter_location docs, add
references to the relevant signals, remove mentions of
GtkPlacesView from the docs, since it is not public at this point.

https://bugzilla.gnome.org/show_bug.cgi?id=752633

10 years agoAdded api to set a window to fullscreen on a given monitor.
Jeremy Whiting [Mon, 13 Jul 2015 16:30:42 +0000 (10:30 -0600)]
Added api to set a window to fullscreen on a given monitor.

https://bugzilla.gnome.org/show_bug.cgi?id=752677

10 years agoUpdated Portuguese translation
Pedro Albuquerque [Sat, 25 Jul 2015 08:37:40 +0000 (08:37 +0000)]
Updated Portuguese translation

10 years agoUpdated POTFILES.skip
Piotr Drąg [Fri, 24 Jul 2015 18:34:13 +0000 (20:34 +0200)]
Updated POTFILES.skip

10 years agogtk-demo: Expand the filter model example
Matthias Clasen [Fri, 24 Jul 2015 18:27:08 +0000 (14:27 -0400)]
gtk-demo: Expand the filter model example

Show normal filtering as well.

10 years agowidget-factory: hook up callbacks to the tab close buttons
Matthias Clasen [Fri, 24 Jul 2015 15:58:38 +0000 (11:58 -0400)]
widget-factory: hook up callbacks to the tab close buttons

Just to show that buttons in notebook tabs work.

10 years agoFix a typo
Matthias Clasen [Fri, 24 Jul 2015 15:27:38 +0000 (11:27 -0400)]
Fix a typo

https://bugzilla.gnome.org/show_bug.cgi?id=752810

10 years agoGdkEvent: Turn out parameters optional
Carlos Garnacho [Fri, 24 Jul 2015 12:36:30 +0000 (14:36 +0200)]
GdkEvent: Turn out parameters optional

As pointed out by lazka in IRC, /me clearly out of phase after allow-none.

10 years agoGdkEvent: Fix introspection annotations on gdk_event_get(_root)_coords
Carlos Garnacho [Fri, 24 Jul 2015 09:51:07 +0000 (11:51 +0200)]
GdkEvent: Fix introspection annotations on gdk_event_get(_root)_coords

These functions respect NULLs being passed, so the return values are
(nullable).

10 years agoGtkGesture: minor cleanup
Carlos Garnacho [Fri, 24 Jul 2015 09:47:27 +0000 (11:47 +0200)]
GtkGesture: minor cleanup

We're not really using the coordinates in that function, we just
double check it's not an unrelated event.

10 years agoMSVC Builds: Fix Introspection Build
Chun-wei Fan [Fri, 24 Jul 2015 09:39:55 +0000 (17:39 +0800)]
MSVC Builds: Fix Introspection Build

The deprecated and a11y sources of GTK+ were spun off some time ago into
their own Makefile.inc, which is then included by gtk/Makefile.am.  Fix the
generation of file sources for the GTK+ .gir.

10 years agogtk/gtkplacessidebar.c: Fix Build on C89
Chun-wei Fan [Fri, 24 Jul 2015 08:25:01 +0000 (16:25 +0800)]
gtk/gtkplacessidebar.c: Fix Build on C89

Ensure variables are declared at the top of the block, and remove a ';;',
which C89 compilers don't like.

10 years agoUpdated Portuguese translation
Pedro Albuquerque [Fri, 24 Jul 2015 07:37:18 +0000 (07:37 +0000)]
Updated Portuguese translation

10 years agoUpdated Portuguese translation
Pedro Albuquerque [Fri, 24 Jul 2015 07:34:41 +0000 (07:34 +0000)]
Updated Portuguese translation

10 years agofile chooser dialog: Better spacing
Matthias Clasen [Fri, 24 Jul 2015 02:15:32 +0000 (22:15 -0400)]
file chooser dialog: Better spacing

When the dialog is as narrow as possible, we still want some
space between the entry and the search button, so use margins
around the entry and label instead of box spacing.

10 years agofile chooser: Fix gtk_file_chooser_set_show_hidden
Matthias Clasen [Fri, 24 Jul 2015 01:54:47 +0000 (21:54 -0400)]
file chooser: Fix gtk_file_chooser_set_show_hidden

We should not override an explicitly set show-hidden value
when loading the setting.

https://bugzilla.gnome.org/show_bug.cgi?id=610925

10 years agoinspector: Rescan toplevels when they change
Matthias Clasen [Fri, 24 Jul 2015 01:28:28 +0000 (21:28 -0400)]
inspector: Rescan toplevels when they change

This ensures that windows appear in the inspectors tree when
they are created, and it prevents GTK_DEBUG=interactive from
coming up with an empty object tree.

https://bugzilla.gnome.org/show_bug.cgi?id=752664

10 years agoinspector: Add a function to rescan
Matthias Clasen [Fri, 24 Jul 2015 01:27:37 +0000 (21:27 -0400)]
inspector: Add a function to rescan

Currently, we only ever scanned the toplevel list and
widget tree once. That is not enough.

10 years agoAnother fix for unmapped window states
Matthias Clasen [Thu, 23 Jul 2015 21:53:13 +0000 (17:53 -0400)]
Another fix for unmapped window states

The previous fix was falling into the crack between
realized and mapped - we would apply the state when a window
is just realized, then unset the _initially flag, and then
when the window gets mapped, we'd undo the state. To fix
this, go back to the way things were when these flags were
first introduced.

https://bugzilla.gnome.org/show_bug.cgi?id=752765

10 years agoGtkWidget: Fix set_font_map docs
Timm Bäder [Thu, 23 Jul 2015 15:57:47 +0000 (17:57 +0200)]
GtkWidget: Fix set_font_map docs

A typo and non-matching parameter names.

10 years agogdk-win32: Send fake release key event for shift key
Pavel Grunt [Wed, 1 Jul 2015 13:12:23 +0000 (15:12 +0200)]
gdk-win32: Send fake release key event for shift key

Windows does not send any release key event for one of the shift keys
when both shift keys were pressed together. This commit solves
the problem by sending the extra release key event for the shift key
which was released as first, when the other shift key is released.

Other modifiers (e.g. Ctrl, Alt) do not have this problem.

https://bugzilla.gnome.org/show_bug.cgi?id=751721

10 years agogtk3-demo: Don't use xalign on GtkCheckButton
Timm Bäder [Wed, 22 Jul 2015 06:41:10 +0000 (08:41 +0200)]
gtk3-demo: Don't use xalign on GtkCheckButton

10 years agoquartz: remove maximized state when the window position/size is changed
Christoph Reiter [Mon, 20 Jul 2015 08:40:35 +0000 (10:40 +0200)]
quartz: remove maximized state when the window position/size is changed

So a window can be maximized/zoomed again after being moved away from
its maximized position. This makes the zoom button on non-CSD windows
work as before.

10 years agoquartz: implement maximized/unmaximized
Christoph Reiter [Mon, 20 Jul 2015 07:05:52 +0000 (09:05 +0200)]
quartz: implement maximized/unmaximized

Instead of using the default zoom behaviour use the internal
maximized state for selecting our own zoom target. This makes
zooming work for CSD windows where for some reason the
given default zoom target is the current window frame itself
resulting in a shadowless window of the same size.

While this makes the zoom button behave a bit different as expected
it makes things more consistent with other platforms and fixes CSD
zooming.

10 years agoquartz: make moving CSD windows right up to the screen's menu bar work.
Christoph Reiter [Mon, 20 Jul 2015 06:32:05 +0000 (08:32 +0200)]
quartz: make moving CSD windows right up to the screen's menu bar work.

The default implementation prevents the window + shadow to move above
the menu bar. Change it so only the window is considered.

10 years agofile chooser: Make keynav in save mode smoother
Matthias Clasen [Thu, 23 Jul 2015 05:04:15 +0000 (01:04 -0400)]
file chooser: Make keynav in save mode smoother

When using the location popup to complete to a directory name
(with a trailing /), we should not punish the user by making the
Open button insensitive and preventing the Enter key from doing
the expected thing (switching to that directory).

https://bugzilla.gnome.org/show_bug.cgi?id=752708

10 years agoRemove debug spew
Matthias Clasen [Thu, 23 Jul 2015 04:45:32 +0000 (00:45 -0400)]
Remove debug spew

10 years agofile chooser entry: Special-case ., .. and ~
Matthias Clasen [Thu, 23 Jul 2015 04:42:19 +0000 (00:42 -0400)]
file chooser entry: Special-case ., .. and ~

Make sure entering the three special strings ".", ".." or "~" in
the location entry works as expected. They already worked correctly
if you append a '/' to force them to be recognized as the 'folder'
part, but that should not be necessary.

https://bugzilla.gnome.org/show_bug.cgi?id=752707

10 years agoGtkWindow: Rework the _initially variables
Matthias Clasen [Thu, 23 Jul 2015 03:28:39 +0000 (23:28 -0400)]
GtkWindow: Rework the _initially variables

Go back to use these variables only for pre-mapped state changes.
Their use got muddied over the years, and it was hard to keep track
of what is acutal state, and what just a queued request.

10 years agoRevert "window: fix initial shadow width for maximized/fullscreen windows"
Matthias Clasen [Thu, 23 Jul 2015 03:16:52 +0000 (23:16 -0400)]
Revert "window: fix initial shadow width for maximized/fullscreen windows"

This reverts commit 740bcf5fe0ff9dd25856e5d000faff80bcf44eea.

10 years agoRevert "gtkwindow: Reset maximize / fullscreen_initially on state changes"
Matthias Clasen [Thu, 23 Jul 2015 03:16:44 +0000 (23:16 -0400)]
Revert "gtkwindow: Reset maximize / fullscreen_initially on state changes"

This reverts commit 862e0dab03e12c2fb1f6d99dd85c588dccc15dbc.

10 years agofile chooser: Fix a crash
Matthias Clasen [Wed, 22 Jul 2015 23:07:20 +0000 (19:07 -0400)]
file chooser: Fix a crash

The save_widgets_create function was not safe against
being called multiple times in save mode, calling
gtk_file_chooser_set_create_folders was a way to trigger
this crash.

10 years agotoolbutton: linkify properties
Stefan Sauer [Wed, 22 Jul 2015 19:43:51 +0000 (21:43 +0200)]
toolbutton: linkify properties

10 years agotoolbutton: fix misleading docs
Stefan Sauer [Wed, 22 Jul 2015 16:53:00 +0000 (18:53 +0200)]
toolbutton: fix misleading docs

First only label-widget clashes with icon-name and not the label property. In
addtion fix the propertyname to use '-' instead of '_'.

10 years agogtk-demo: Add a filter model example
Matthias Clasen [Wed, 22 Jul 2015 14:56:56 +0000 (10:56 -0400)]
gtk-demo: Add a filter model example

This shows computed columns.

10 years agofontchooserwidget: Refactor code so we actually optimize
Benjamin Otte [Wed, 22 Jul 2015 13:04:34 +0000 (15:04 +0200)]
fontchooserwidget: Refactor code so we actually optimize

Previously, we would pango_font_describe() every time the code ran and
we wouldn't ever hit the optimized quick exit.

The code now is a lot more complex because the
compute-actual-value-when-required-the-first-time approach is not
supported out of the box in GtkTreeModel (or GValue).

10 years agogtk3-demo: Don't set xalign of GtkCheckButton
Timm Bäder [Tue, 21 Jul 2015 18:23:09 +0000 (20:23 +0200)]
gtk3-demo: Don't set xalign of GtkCheckButton

It's deprecated and doesn't make a difference here.

10 years agoGtkImage: Plug a memory leak
Matthias Clasen [Wed, 22 Jul 2015 03:04:30 +0000 (23:04 -0400)]
GtkImage: Plug a memory leak

10 years agogtk-demo: Properly clean up timeouts in search entry demo
Matthias Clasen [Wed, 22 Jul 2015 01:12:36 +0000 (21:12 -0400)]
gtk-demo: Properly clean up timeouts in search entry demo

10 years agoplaces sidebar: Don't leak shortcuts
Matthias Clasen [Wed, 22 Jul 2015 01:00:12 +0000 (21:00 -0400)]
places sidebar: Don't leak shortcuts

Poined out by valgrind.

10 years agoGtkSearchEngine: Be more robust in cancellation cases
Matthias Clasen [Wed, 22 Jul 2015 00:40:46 +0000 (20:40 -0400)]
GtkSearchEngine: Be more robust in cancellation cases

When the search is cancelled, we may end up with a tracker
dbus reply coming in after the GtkSearchEngine object is
already gone, and bad things happen. Prevent this by
using g_signal_connect_object instead of g_signal_connect.

10 years agoGtkQuery: Make API follow GTK+ conversions
Matthias Clasen [Wed, 22 Jul 2015 00:39:29 +0000 (20:39 -0400)]
GtkQuery: Make API follow GTK+ conversions

We generally have const getters for strings, and the two users
of this API were promptly leaking the (unexpected) copy they
got from gtk_query_get_location and gtk_query_get_text.

10 years agoplaces sidebar: Always chain up in finalize
Matthias Clasen [Tue, 21 Jul 2015 23:51:50 +0000 (19:51 -0400)]
places sidebar: Always chain up in finalize

The GtkSidebarRow class was forgetting to do this. The visible
symptom of this in valgrind is that you notice GObject data
being leaked.

10 years agoplaces sidebar: Plug a memory leak
Matthias Clasen [Tue, 21 Jul 2015 23:10:04 +0000 (19:10 -0400)]
places sidebar: Plug a memory leak

10 years agoUpdated Czech translation
Marek Černocký [Tue, 21 Jul 2015 22:48:45 +0000 (00:48 +0200)]
Updated Czech translation

10 years agoUse versioned deprecations more seriously
Matthias Clasen [Tue, 21 Jul 2015 21:49:08 +0000 (17:49 -0400)]
Use versioned deprecations more seriously

I invadvertendly introduced a dependency on a recent GLib recently,
by cherry-picking a fix that used new GLib API. This commit will
help catching such errors before release, by using the versioned
deprecation machinery to turn such events into build-time
warnings.

10 years agoplaces sidebar: Improve docs
Matthias Clasen [Tue, 21 Jul 2015 19:06:27 +0000 (15:06 -0400)]
places sidebar: Improve docs

Clarify the deprecation note for ::show-connect-to-server.
https://bugzilla.gnome.org/show_bug.cgi?id=752633

10 years agoplaces sidebar: Improve the docs
Matthias Clasen [Tue, 21 Jul 2015 19:05:06 +0000 (15:05 -0400)]
places sidebar: Improve the docs

Reword the docs of gtk_places_sidebar_set_drop_targets_visible().

10 years agoplaces sidebar: Fix a copy-paste leftover
Matthias Clasen [Tue, 21 Jul 2015 18:55:58 +0000 (14:55 -0400)]
places sidebar: Fix a copy-paste leftover

The ::populate-all nick and blurb where not referrering to this
property at all.
https://bugzilla.gnome.org/show_bug.cgi?id=752633

10 years agotoolbutton: improve docs wrt stock deprecation
Stefan Sauer [Tue, 21 Jul 2015 18:16:15 +0000 (20:16 +0200)]
toolbutton: improve docs wrt stock deprecation

Docuemnt where to get the images from.

10 years agoUpdated Polish translation
Piotr Drąg [Tue, 21 Jul 2015 15:21:17 +0000 (17:21 +0200)]
Updated Polish translation

10 years agoUpdated Hebrew translation
Yosef Or Boczko [Tue, 21 Jul 2015 09:56:02 +0000 (12:56 +0300)]
Updated Hebrew translation

10 years ago3.17.5
Matthias Clasen [Mon, 20 Jul 2015 11:52:36 +0000 (07:52 -0400)]
3.17.5

10 years agoFix distcheck
Matthias Clasen [Tue, 21 Jul 2015 03:54:39 +0000 (23:54 -0400)]
Fix distcheck

Makefile.decl does not work well with scripts that stay
in srcdir, so generate test-simplify from test-simplify.in,
just os that it ends up in builddir.

10 years agoplaces view: Disconnect from volume monitor
Matthias Clasen [Tue, 21 Jul 2015 01:19:58 +0000 (21:19 -0400)]
places view: Disconnect from volume monitor

Just unreffing the volume monitor object won't stop it from emitting
signals that we are connected to. Disconnect from the signals in
finalize.

10 years agoreftests: Fix underlines in link-coloring reftest
Benjamin Otte [Tue, 21 Jul 2015 00:27:45 +0000 (02:27 +0200)]
reftests: Fix underlines in link-coloring reftest

Underlines now need to be manually specified in CSS since GTK got
text-decoration support.

10 years agotreeview: Don't underallocate editing widgets that are too big
Benjamin Otte [Mon, 20 Jul 2015 02:20:50 +0000 (04:20 +0200)]
treeview: Don't underallocate editing widgets that are too big

10 years agocombobox: Unconditionally draw background and border
Benjamin Otte [Sun, 19 Jul 2015 16:35:33 +0000 (18:35 +0200)]
combobox: Unconditionally draw background and border

10 years agocombobox: Remove autoscroll timer on popdown
Benjamin Otte [Sun, 19 Jul 2015 16:31:33 +0000 (18:31 +0200)]
combobox: Remove autoscroll timer on popdown

10 years agocombobox: Remove cell_view_frame
Benjamin Otte [Sun, 19 Jul 2015 03:42:39 +0000 (05:42 +0200)]
combobox: Remove cell_view_frame

Cell views can draw their own frames now.

10 years agocellview: Implement border and background drawing
Benjamin Otte [Sun, 19 Jul 2015 03:23:11 +0000 (05:23 +0200)]
cellview: Implement border and background drawing

10 years agogtkimagemenuitem: improve the replacement docs even more
Stefan Sauer [Mon, 20 Jul 2015 19:02:39 +0000 (21:02 +0200)]
gtkimagemenuitem: improve the replacement docs even more

Since the stock strings usually have menmosics suggest
gtk_menu_item_new_with_mnemonic().

10 years agooffscreen_window: Remove deprecated API calls
Timm Bäder [Mon, 20 Jul 2015 15:04:25 +0000 (17:04 +0200)]
offscreen_window: Remove deprecated API calls

10 years agogtkimagemenuitem: fix suggestion for replacement
Stefan Sauer [Mon, 20 Jul 2015 18:54:52 +0000 (20:54 +0200)]
gtkimagemenuitem: fix suggestion for replacement

gtk_menu_item_new(9 would create an empty menu item. While the stock deprecation
aims to unclutter the menus, I feel this goes too far.

10 years agodrawingarea: use same background approach as GtkLayout
Cosimo Cecchi [Mon, 20 Jul 2015 15:21:43 +0000 (08:21 -0700)]
drawingarea: use same background approach as GtkLayout

Call gtk_style_context_set_background() every time the style is updated
and add a comment as to why we still need to do it here.

https://bugzilla.gnome.org/show_bug.cgi?id=752599

10 years agoRevert "drawingarea: don't call gtk_style_context_set_background()"
Cosimo Cecchi [Mon, 20 Jul 2015 15:13:35 +0000 (08:13 -0700)]
Revert "drawingarea: don't call gtk_style_context_set_background()"

This reverts commit 6786c9d724ad57ea30e169d2afcb4a314b2e56bb.

https://bugzilla.gnome.org/show_bug.cgi?id=752599

10 years agoRevert "drawingarea: checks parent's draw() before call it"
Cosimo Cecchi [Mon, 20 Jul 2015 15:13:24 +0000 (08:13 -0700)]
Revert "drawingarea: checks parent's draw() before call it"

This reverts commit b3166b745f41a901171821ccc9f0c69b9cc35e70.

https://bugzilla.gnome.org/show_bug.cgi?id=752599

10 years agofile chooser: Memory handling fixes
Matthias Clasen [Mon, 20 Jul 2015 15:11:00 +0000 (11:11 -0400)]
file chooser: Memory handling fixes

I forgot to clean up the long press gesture, and in additon, creating
the rename popover from the ui template was causing the tree view
to not be disposed when the file chooser goes away. Work around this
by manually unsetting the relative-to widget of the popover in dispose.

10 years agoFix return value error in gtk_stack_get_interpolate_size
Ting-Wei Lan [Mon, 20 Jul 2015 13:55:40 +0000 (21:55 +0800)]
Fix return value error in gtk_stack_get_interpolate_size

10 years agoUpdated Spanish translation
Daniel Mustieles [Mon, 20 Jul 2015 10:00:21 +0000 (12:00 +0200)]
Updated Spanish translation

10 years agoUpdated Spanish translation
Daniel Mustieles [Mon, 20 Jul 2015 10:00:01 +0000 (12:00 +0200)]
Updated Spanish translation

10 years agowayland: Always apply scaling factor to cursor hotspot and dimension
Jonas Ådahl [Mon, 20 Jul 2015 08:01:32 +0000 (16:01 +0800)]
wayland: Always apply scaling factor to cursor hotspot and dimension

Prior to this patch, the hotspot would be passed in buffer coordinate
space. Where this were ever tested, i.e. in a patched mutter, the
server interpreted them incorrectly, which meant it went undiscovered.
In the updated mutter patches the incorrect behavior in GTK+ was
discovered due to the behavior in mutter was corrected.

In the themed cursor case, the dimensions were not correctly scaled
either, but this had no negative visible effect because the dimension is
only used for reporting damage tracking, and passing a bigger damage
region than surface has no negative visible effects.

https://bugzilla.gnome.org/show_bug.cgi?id=752616

10 years agoGtkPopover: Set interpolate-size on the stack...
Timm Bäder [Sun, 19 Jul 2015 15:40:28 +0000 (17:40 +0200)]
GtkPopover: Set interpolate-size on the stack...

... in gtk_popover_bind_model
and gtk_popover_menu_init

10 years agoGtkStack: Add interpolate-size property
Timm Bäder [Sun, 19 Jul 2015 15:39:41 +0000 (17:39 +0200)]
GtkStack: Add interpolate-size property

And use it to determine whether we should actually interpolate between
stack sizes or not.

10 years agoGtkListBox: Improve focus scrolling
Matthias Clasen [Mon, 20 Jul 2015 02:18:58 +0000 (22:18 -0400)]
GtkListBox: Improve focus scrolling

We are trying to scroll the header in view together with the
focus row. The way this is implemented works fine when scrolling
up, but falls short when scrolling down. Fix this by making sure
that both the row and the header bar visible.

10 years agoGtkListBox: Listen for adjustment changes
Matthias Clasen [Mon, 20 Jul 2015 02:08:36 +0000 (22:08 -0400)]
GtkListBox: Listen for adjustment changes

We automatically pick up an adjustment from our parent
scrollable, but we failed to update it when it changes.
This is happening in the places sidebar, and it was causing
the focus-tracking to fail there, letting the focus move
out of view. With this change, the focus remains visible.

10 years agoplaces sidebar: Improve keynav
Matthias Clasen [Mon, 20 Jul 2015 02:07:21 +0000 (22:07 -0400)]
places sidebar: Improve keynav

Remove the code in the sidebar keypress handler that imperfectly
reproduces what GtkListBox already does: moving selection and
focus in response to arrow keys.

10 years agotrivial: Some reformatting
Matthias Clasen [Sun, 19 Jul 2015 21:39:23 +0000 (17:39 -0400)]
trivial: Some reformatting

10 years agoplaces sidebar: Remove pointless code
Matthias Clasen [Sun, 19 Jul 2015 21:37:39 +0000 (17:37 -0400)]
places sidebar: Remove pointless code

No need to set or unset adjustments explicitly.

10 years agospin button: Add Home and End as key bindings
Matthias Clasen [Sun, 19 Jul 2015 21:17:53 +0000 (17:17 -0400)]
spin button: Add Home and End as key bindings

Make these go to the lower/upper boundary of the adjustment, like
Ctrl-PageUp/PageDown already do.
https://bugzilla.gnome.org/show_bug.cgi?id=309300

10 years agoGtkWidget: Add custom font map support
Matthias Clasen [Mon, 6 Jul 2015 04:33:47 +0000 (00:33 -0400)]
GtkWidget: Add custom font map support

This allows to use a custom font map for parts of the widget
hierarchy - this can be used for application-specific fonts.

https://bugzilla.gnome.org/show_bug.cgi?id=751812

10 years agofont chooser: Add placeholder text to preview entry
Matthias Clasen [Sun, 19 Jul 2015 20:52:03 +0000 (16:52 -0400)]
font chooser: Add placeholder text to preview entry

This will make things more understandable if an application
sets an empty preview text.
https://bugzilla.gnome.org/show_bug.cgi?id=725551

10 years agoGdkGLContext little fix to property names and descriptions.
Daniel Hams [Thu, 16 Jul 2015 16:22:07 +0000 (17:22 +0100)]
GdkGLContext little fix to property names and descriptions.

https://bugzilla.gnome.org/show_bug.cgi?id=752502